<template>
  <div class="home"></div>
</template>

<script>
import { ref, onMounted } from "vue";
import { getHomeAll, getBanner } from "network/home.js";

export default {
  setup() {
    const banner = ref([]);

    onMounted(() => {
      getHomeAll().then((res) => {
        console.log(res);
        banner.value = res.slides;
      });
    });

    return {
      banner,
    };
  },
  components: {},
};
</script>

<style lang="scss"></style>
